package com.example.dubbo.api.dubbo;

import com.example.dubbo.api.entity.PeopleEntity;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/9/18 13:34
 */
@Slf4j
@DubboService(version = "2.0.0")
public class PeopleServiceImplV2 implements PeopleService {
    @Override
    public PeopleEntity getPeopleById(Integer id) {
        log.info("PeopleServiceImplV2 1.0.0  id:{}", id);
        return new PeopleEntity().setId(id).setName("admin" + id);
    }
}
